﻿<phone:PhoneApplicationPage x:Class="TrollFacing.TrollDeFacePage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            SupportedOrientations="Landscape"
                            Orientation="Landscape"
                            mc:Ignorable="d"
                            d:DesignHeight="480"
                            d:DesignWidth="800"
                            shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot"
          Background="Transparent">

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="240" />
        </Grid.ColumnDefinitions>

        <Image x:Name="Picture"
               HorizontalAlignment="Left"
               VerticalAlignment="Top" />

        <Grid x:Name="TrollFaceContainer"
              HorizontalAlignment="Left"
              VerticalAlignment="Top" />

        <StackPanel VerticalAlignment="Bottom">
            <TextBlock x:Name="PictureText" />
            <TextBlock x:Name="TrollDetectText" 
                       FontSize="14"/>
        </StackPanel>

        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <StackPanel x:Name="ExtraButtons"
                        Visibility="Collapsed">
                <Button Content="POINTS"
                        Background="{StaticResource PhoneAccentBrush}"
                        HorizontalAlignment="Center"
                        Click="ShowPoints_Click" />
                <Button Content="TRACES"
                        Background="{StaticResource PhoneAccentBrush}"
                        HorizontalAlignment="Center"
                        FontFamily="Segoe WP Black"
                        Click="ShowTraces_Click" />
                <Button Content="AWESOME !"
                        Background="{StaticResource PhoneAccentBrush}"
                        HorizontalAlignment="Center"
                        Click="AwesomeFacify_Click" />
                <Button Content="TROLL !"
                        Background="{StaticResource PhoneAccentBrush}"
                        HorizontalAlignment="Center"
                        Click="TransfoTroll_Click" />
            </StackPanel>

            <StackPanel VerticalAlignment="Bottom"
                        HorizontalAlignment="Center"
                        Grid.Row="1">
                <Button Content="DETECT !"
                        Click="DetectFace_Click" />
                <Button Content="AUTRE PHOTO" />
            </StackPanel>

        </Grid>

        <ProgressBar IsIndeterminate="True"
                     Visibility="Collapsed"
                     VerticalAlignment="Top"
                     Grid.ColumnSpan="2"
                     x:Name="LoadingControl" />

    </Grid>

</phone:PhoneApplicationPage>
